package vn.training.view.bean;

import java.util.HashMap;
import java.util.Map;

import javax.faces.event.ActionEvent;

import vn.training.view.HrConstant;

public class NavigationBean extends BaseFlowBean {
    public NavigationBean() {
    }

    /**
     * Open Employee detail view.
     * @param actionEvent
     */
    public void viewEmployeeDetail(ActionEvent actionEvent) {
        Map<String, Object> parameters = new HashMap<String, Object>();
        Object empKey = getPageFlowScope().get("empKey");
        parameters.put("pEmpKey", empKey);
        String empName = (String) getPageFlowScope().get("empName");

        launchActivity(empName, HrConstant.EMPLOYEE_DETAIL_TASK_FLOW, parameters, true);
    }
}
